package gui.view;

import java.awt.Component;

import javax.swing.JButton;

import gui.parser.Attr;

public class Button extends TextView {
	private JButton button;

	public Button(Attr attr) {
		super(attr);
	}

	@Override
	public void init() {
		super.init();
		button = new JButton();
		setClickable(true);
	}

	@Override
	public void invalidate() {
		super.invalidate();
		button.setText(text);
		button.setFont(font);
	}

	@Override
	public Component getView() {
		return button;
	}
}
